<div class="row">
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
  <div class="span5"> 
<form action="/<*$controller*>/opeditdown" method="post" id="form1"  enctype="multipart/form-data" >    
  		<p>编辑&nbsp;&nbsp;<*$result.0.goodsname*></p>
        <table class="table table-bordered " style="margin-top:15px; margin-left:20px;">
            <tr><th>宝贝名</th><td><input type="text" name="name" id="name" value="<*$result.0.goodsname*>" ></td></tr>
            <tr><th>所需积分</th><td><input type="text" name="score" id="score" value="<*$result.0.credit*>" ></td></tr>
<!--        <tr><th>宝贝数量</th><td><input type="text" name="number" id="number" ></td></tr>-->
            <tr><th>宝贝图片</th><td>                    	
                <input type="file" name="pic_url" id="pic_url" style="width:200px;"/> 
                <br /><span style="color:red; font-size:12px;">*只能上传一张图片</span>
                <a href="http://cloud.yunxiaoche.com/credit/<*$result.0.filename*>.jpg" target="_blank"><img class="span2" src="http://cloud.yunxiaoche.com/credit/<*$result.0.filename*>.jpg"/></a>
			</td></tr>
            <tr><th>宝贝描述</th><td><textarea rows="3" name="content" id="content" ><*$result.0.intro*></textarea></td></tr>
        	<tr><th colspan="2" style="text-align:center;">
                <button type="submit" class="btn btn-primary" >修改</button>
                <button type="button" class="btn" onclick="window.location='/<*$controller*>/<*$action*>/gid/<*$result.0.goodsid*>'">取消</button>
                <button type="button" class="btn btn-primary" onclick="window.location='/<*$controller*>/down'">返回</button>
				<input type="hidden" name="gid" value="<*$result.0.goodsid*>" id="gid"/>
            </th></tr>
        </table>
</form>
  </div>
</div>
